﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarTurboEngine
/// </summary>
/// 
namespace CE.Provider
{
    public class CarTurboEngine
    {
        private Int64 _providercarturboengineid;
        private Int64 _providercompanyid;
        private bool _isturbo;
        private float _carturboenginerate;

        //common field name
        private Int64 _refceuserid;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        //extra field for future extend
        //private string _info1;
        //private string _info2;
        //private string _info3;
        //private string _info4;
        //private string _info5;
        //private Int64 _ninfo1;
        //private Int32 _ninfo2;
        private float _finfo1;//new rate
        //private float _finfo2;
        private DateTime _dinfo1;//effectivity date

        public CarTurboEngine()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 ProviderCarTurboEngineId
        {
            get { return _providercarturboengineid; }
            set { _providercarturboengineid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public bool IsTurbo
        {
            get { return _isturbo; }
            set { _isturbo = value; }
        }

        public float TurboEngineRate
        {
            get { return _carturboenginerate; }
            set { _carturboenginerate = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        //public string Info1
        //{
        //    get { return _info1; }
        //    set { _info1 = value; }
        //}

        //public string Info2
        //{
        //    get { return _info2; }
        //    set { _info2 = value; }
        //}

        //public string Info3
        //{
        //    get { return _info3; }
        //    set { _info3 = value; }
        //}

        //public string Info4
        //{
        //    get { return _info4; }
        //    set { _info4 = value; }
        //}

        //public string Info5
        //{
        //    get { return _info5; }
        //    set { _info5 = value; }
        //}

        //public Int64 NInfo1
        //{
        //    get { return _ninfo1; }
        //    set { _ninfo1 = value; }
        //}

        //public Int32 NInfo2
        //{
        //    get { return _ninfo2; }
        //    set { _ninfo2 = value; }
        //}

        public float FInfo1
        {
            get { return _finfo1; }
            set { _finfo1 = value; }
        }

        //public float FInfo2
        //{
        //    get { return _finfo2; }
        //    set { _finfo2 = value; }
        //}

        public DateTime DInfo1
        {
            get { return _dinfo1; }
            set { _dinfo1 = value; }
        }

        public void ClearFields()
        {
            _providercarturboengineid = 0;
            _providercompanyid = 0;
            _isturbo = false;
            _carturboenginerate = 0.0f;
            //common field name
            _refceuserid = 0;
            _status = false;
            _createddate = new DateTime();
            _modifieddate = new DateTime();

            //extra field for future extend
            //_info1 = "";
            //_info2 = "";
            //_info3 = "";
            //_info4 = "";
            //_info5 = "";
            //_ninfo1 = 0;
            //_ninfo2 = 0;
            _finfo1 = 0.0f;
            //_finfo2 = 0.0f;
            _dinfo1 = new DateTime();
        }

    }
}